/**
 * Copyright (c) 快宝网络 kuaidihelp.com Co., Ltd. All Rights Reserved 禁止外泄以及用于其它的商业用途
 */

// 网点公众号管理

import React, { useState } from 'react';
import { PageContainer } from '@ant-design/pro-layout';
import { message } from 'antd';
import ProForm, { DrawerForm, ProFormText } from '@ant-design/pro-form';

interface kbDrawerFrom {
  drawer: string;
}

const KbDrawerFrom: React.FC<kbDrawerFrom> = () => {
  const [drawerVisit, setDrawerVisit] = useState(false);

  return (
    <PageContainer title=''>
      <DrawerForm<{ name: string; company: string }>
        title=''
        onVisibleChange={setDrawerVisit}
        visible={drawerVisit}
        onFinish={async () => {
          message.success('提交成功');
          return true;
        }}
      >
        <h2>权限管理</h2>
        <ProForm.Group>
          <ProFormText
            name='cloud_print'
            initialValue=''
            width='md'
            label='云打印等级'
            placeholder='云打印等级'
          />
          <ProFormText
            name='default_agent_guid'
            width='md'
            label='默认代理guid'
            placeholder='代理guid'
          />
          <ProFormText name='default_dak_id' width='md' label='默认驿站ID' placeholder='驿站ID' />
          <ProFormText
            name='default_courier_id'
            width='md'
            label='默认接单快递员'
            placeholder='快递员id'
          />
          <ProFormText name='welcome' width='md' label='欢迎语' placeholder='欢迎语' />
          <ProFormText name='dak_id' width='md' label='驿站id' placeholder='驿站id' />
        </ProForm.Group>
        <h2>淘宝客招商</h2>
        <ProForm.Group>
          <ProFormText name='tbk_title' width='md' label='标题' placeholder='标题' />
          <ProFormText name='tbk_url' width='md' label='图片链接' placeholder='图片链接' />
          <ProFormText name='tbk_content' width='md' label='内容' placeholder='内容' />
        </ProForm.Group>
        <h2>是否开通菜单服务</h2>
        <ProForm.Group>
          <ProFormText name='coupon' width='md' label='优惠券' placeholder='优惠券' />
          <ProFormText name='merchant_entry' width='md' label='商家入驻' placeholder='商家入驻' />
          <ProFormText name='local_mall' width='md' label='本地商城' placeholder='本地商城链接' />
          <ProFormText name='urgent_delivery' width='md' label='同城急送' placeholder='商家入驻' />
        </ProForm.Group>
      </DrawerForm>
    </PageContainer>
  );
};

export default KbDrawerFrom;
